﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<KabiManagementWeb.Models.TimeSlot>>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    Index
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <h2>
        Danh sách ca trực</h2>
    <p>
        <%= Html.ActionLink("+ Thêm ca trực", "Create") %>
    </p>
    <hr />
    <table class="tbList" cellspacing="0">
        <tr>
            <th>
            </th>
            <th>
                Tên ca trực
            </th>
            <th>
                Giờ bắt đầu
            </th>
            <th>
                Giờ kết thúc
            </th>
        </tr>
        <% foreach (var item in Model)
           { %>
        <tr>
            <td>
                <%= Html.ActionLink("Sửa", "Edit", new { id=item.ID }) %>
            </td>
            <td>
                <%= Html.Encode(item.Ts_Name) %>
            </td>
            <td>
                <%= Html.Encode(item.StartTime) %>
            </td>
            <td>
                <%= Html.Encode(item.EndTime) %>
            </td>
        </tr>
        <% } %>
    </table>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ScriptZone" runat="server">
</asp:Content>
